package com.heima.behavior.controlle;

import com.heima.behavior.dto.ArticleInfoDto;
import com.heima.behavior.dto.BehaviorDto;
import com.heima.behavior.service.IApBehaviorEntryService;
import com.heima.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
public class ApBehaviorController {

    @Autowired
    private IApBehaviorEntryService apBehaviorEntryService;

    /**
     * 查询标记：喜欢 不喜欢 收藏 关注
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/behavior/all")
    public ResponseResult<BehaviorDto> loadArticleBehavior(@RequestBody ArticleInfoDto dto){
        return apBehaviorEntryService.loadArticleBehavior(dto);
    }
}
